//
// Created by zlj on 2024/9/13.
//

#ifndef PIN_CONFIG_H
#define PIN_CONFIG_H
#include "soft_config.h"

/**********************uart1 config begin*******************/
#define UART1_TX_PORT           GPIOC
#define UART1_TX_PIN            PIN1
#define UART1_RX_PORT           GPIOC
#define UART1_RX_PIN            PIN2
#define UART1_BAUD              115200L

#define	DEBUG_USART_TX_PORT			    UART1_TX_PORT
#define	DEBUG_USART_TX_PIN  			UART1_TX_PIN
#define DEBUG_USART_TX_GPIO_FUNC        PC1_UART1_TX
#define	DEBUG_USART_RX_PORT			    UART1_RX_PORT
#define	DEBUG_USART_RX_PIN			    UART1_RX_PIN
#define DEBUG_USART_RX_GPIO_FUNC        PC2_UART1_RX
#define	DEBUG_USART_BAURD		        UART1_BAUD

/**********************gpio charge io*********************************/
#define	NAVI_SCL_PORT			GPIOC
#define	NAVI_SCL_PIN			PIN0
#define	NAVI_SDA_PORT			GPIOF
#define	NAVI_SDA_PIN			PIN6

#define	ADC_REF_PORT			GPIOF
#define	ADC_REF_PIN				PIN1
#define	ADC_REF_CH				ADC_7
#define	ADC_REF_CH_EN			ADC_CH7_EN
#define	ADC_REF_GPIO			ADC_PF1

#define	ADC_V_PORT				GPIOB
#define	ADC_V_PIN				PIN6
#define	ADC_V_CH				ADC_10
#define	ADC_V_CH_EN				ADC_CH10_EN
#define	ADC_V_GPIO				ADC_PB6

#define	ADC_I_PORT				GPIOB
#define	ADC_I_PIN				PIN7
#define	ADC_I_CH				ADC_8
#define	ADC_I_CH_EN				ADC_CH8_EN
#define	ADC_I_GPIO				ADC_PB7

/********************************************************/

#endif //PIN_CONFIG_H
